<div class="ml left">
	<div class="clear" style="height: 35px;"></div>
	<?php 
		if(isset($_SESSION[Q::ini('acl_session_key')]))
			$this->_element('accountinfo');
//		else
//			$this->_element('login');
	?>
	<div class="ad-left">
	<?php if (!empty($user)) { ?>
<!--		<iframe src="http://panel.gwallet.com/network-node/impression?appId=9be19287b1c842c299830f738c8d5c57&userId=<?php echo $user['id'];?>&panelId=5&trackId=cdleft" frameborder="0" width="215" height="525" scrolling="no"></iframe> -->
<!--<script type="text/javascript" src="http://assets.tp-cdn.com/static3/js/api/payment_overlay.js"></script>
<a href="#" onclick="earn();return false;"><img src="<?php echo $img_url; ?>dealspot.png"></a>
<script type="text/javascript">
  function earn() {
    TRIALPAY.social.show_overlay('713bca2cf1fa9a3b93f0a16780d7db5d', <?php echo "'uid".$user['id']."'";?>, { 'dealspot':1, 'm':"mm" });
  }
</script>-->
<!--<a href="http://www.peanutlabs.com/publisher/promo/?publisherId=4676&oid=181137&endUserId=<?php echo $user['id'];?>" target="_blank"><img src="<?php echo $img_url;?>dealspot.png"></a> -->
<!-- <a href="<?php echo url('offer/morecredit');?>"><img src="<?php echo $img_url;?>dealspot.png"></a> -->
<!--<a href="http://www.peanutlabs.com/publisher/plOffer.php?publisherId=4676&oid=210498&endUserId=<?php echo $user['id'].'-4676-'.substr(md5($user['id'].'4676'.'f211973200aed87ef558d3ec364765dc'), 0, 10 );?>" target="_blank">--><!--<img src="<?php echo $img_url;?>dealspot.png">--><!--<img src="http://ii.peanutlabs.com/CD_Thanksgiving_Sweeps_208x242.jpg"></a>-->
<!-- <a href="http://www.peanutlabs.com/publisher/promo/?publisherId=4676&oid=221424&endUserId=<?php echo $user['id'].'-4676-'.substr(md5($user['id'].'4676'.'f211973200aed87ef558d3ec364765dc'), 0, 10 );?>" target="_blank"><img src="http://ii.peanutlabs.com/CD_Vista_Promo1.jpg" width="208" height="242" border="0"></a> -->
<a href="http://www.peanutlabs.com/publisher/promo/?publisherId=4676&oid=240534&endUserId=<?php echo $user['id'].'-4676-'.substr(md5($user['id'].'4676'.'f211973200aed87ef558d3ec364765dc'), 0, 10 );?>" target="_blank" ><img src="http://image.cgb.s3.amazonaws.com/ad/215x250/BigFish_Promo_cd.jpg" width="215" height="250" border="0" /></a>
	<?php } ?>
	</div>
	<div class="latest" style="margin-top:0">
		<div class="clear" style="height:78px;"></div>
		<div class="list">
			<?php 
					foreach($site['activities'] as $activity)
					{
						echo '<div class="item" style="height: 35px">' .$activity['who'] . ' - ' . $activity['what'] . ' - ' . Util::getTimeElapsed($activity['time']) . '</div>';
					}
			?>
		</div>
	</div>
</div>
